home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / CRS / crs54.d81 / sgtool15.lzh / PCX.H < prev    next >
Text File  |  2009-10-10  |  896b  |  44 lines

  1. /*
  2. SG C Tools 1.5
  3.  
  4. (C) 1993 Steve Goldsmith
  5. All Rights Reserved
  6.  
  7. Compiled with HI-TECH C 3.09 (CP/M-80).
  8. */
  9.  
  10. #define pcxErrNone    0
  11. #define pcxErrFile    1
  12. #define pcxErrHeader  2
  13. #define pcxErrNotPCX  3
  14. #define pcxErrNot2Bit 4
  15.  
  16. typedef struct
  17. {
  18.   uchar Manufacturer;
  19.   uchar Version;
  20.   uchar Encoding;
  21.   uchar BitsPerPixel;
  22.   short XMin;
  23.   short YMin;
  24.   short XMax;
  25.   short YMax;
  26.   short HRes;
  27.   short VRes;
  28.   uchar Palette[48];
  29.   uchar Reserved;
  30.   uchar ColorPlanes;
  31.   short BytesPerLine;
  32.   short PaletteType;
  33.   uchar Filler[58];
  34. } pcxHead;
  35.  
  36. short initpcx(char *FileName);
  37. void donepcx(void);
  38.  
  39. void decodelinepcx(ushort X, ushort Y);
  40. void decodefilepcx(ushort X, ushort Y);
  41.  
  42. void decodelineintpcx(ushort X, ushort Y);
  43. void decodefileintpcx(ushort X, ushort Y);
  44.